package com.shengqiang.cloud.ups.dao.repository.master;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.shengqiang.cloud.ups.dao.modal.UpmsRolePermission;

import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2018/1/15.
 */
public interface UpmsRolePermissionMapper extends BaseMapper<UpmsRolePermission>{

    int deletePermissionByRoleId(int roleId);

    int addRolePermissions(List<UpmsRolePermission> permissions);

    List<UpmsRolePermission> selectRolePermissions(Map<String,Object> params);
}
